#define _CRT_SECURE_NO_WARNINGS 1

#include<stdio.h>
#include<string.h>
#include<stdlib.h>

int main()
{
    char str1[10000] = { 0 }, str2[1000] = {0};
    int a[250] = { 0 }, b[250] = {0}, len = 0;
    int i;
    gets(str1);
    getchar();
    gets(str2);
    a[0] = strlen(str1);
    for (i = 1; i <= a[0]; i++)
    {
        a[i] = str1[a[0] - i] - '0';
    }
    b[0] = strlen(str2);
    for (i = 1; i <= b[0]; i++)
    {
        b[i] = str2[b[0] - i] - '0';
    }
    len = (a[0] > b[0] ? a[0] : b[0]);   
    for (i = 1; i <= len; i++) 
    {
        a[i] += b[i];
        a[i + 1] += a[i] / 10;
        a[i] %= 10;
    }
    len++;    
    while ((a[len] == 0) && (len > 1))
    {
        len--;
    }
    for (i = len; i >= 1; i--)
    {
        printf("%d", a[i]);
    }
    return 0;
}

